const prints = document.querySelectorAll('.print-box img'),
    tells = document.querySelectorAll('.tell-box>.tell');



// const footWrapper = document.querySelector('.foot-wrapper');
// footWrapper.style.display = 'none';

// footChange();
// setTimeout(function() {
//     footWrapper.style.display = 'block';
// }, 100)

for (let a = 0; a < tells.length; a++) {
    tells[(tells.length - 1) - a].style.animation = "telltmove 2.6s forwards";
    tells[(tells.length - 1) - a].style.animationDelay = a * 2.6 + "s";
}

function footChange() {
    for (let i = 0; i < prints.length; i++) {
        prints[(prints.length - 1) - i].style.animation = "printmove 0.8s forwards";
        prints[(prints.length - 1) - i].style.animationDelay = i * 0.8 + "s";
    }


    // 当前到顶端的距离
    let rangeTop = document.documentElement.scrollTop;

    rangeTop = 2300;



    // 设定计时器
    const topTimer = setInterval(function() {

        rangeTop = rangeTop - 5;

        if (rangeTop <= 0) {
            rangeTop = 0;
            clearInterval(topTimer);
        }

        // 修改滚动条
        document.documentElement.scrollTop = document.body.scrollTop = rangeTop;
    }, 15);

}
